Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 4 - Dialog Manager Reference / Dialog Manager Types and Constants
The Standard Alert Structure


Alert Button Constants

NEW WITH THE APPEARANCE MANAGER

You can use these constants in the defaultButton and cancelButton fields in the standard alert structure to specify which buttons act as the default and Cancel buttons in the standard alert structure. These constants are also returned in the itemHit parameter of StandardAlert.

enum {
   kAlertStdAlertOKButton     = 1,
   kAlertStdAlertCancelButton = 2,
   kAlertStdAlertOtherButton  = 3,
   kAlertStdAlertHelpButton   = 4
};

Constant descriptions

kAlertStdAlertOKButton
The OK button. The default text for this button is "OK".
kAlertStdAlertCancelButton
The Cancel button (optional). The default text for this button is "Cancel".
kAlertStdAlertOtherButton
A third button (optional). The default text for this button is "Don't Save".
kAlertStdAlertHelpButton
The Help button (optional).

Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998